package cn.com.cifi.mars.constant;
/**
 * 权限类型 1--菜单级、2--页面元素级、3--功能操作级
 *
 *
 */
public enum PerTypeEnum {

	MENU("1","菜单级"),
	PAGE("2","页面元素级"),
	BUTTON("3","功能操作级"),
    ;

    private String key;
    private String value;

    PerTypeEnum(String key,String value) {
        this.key = key;
        this.value = value;
    }
    
    
    public static String getValueByKey(String key){
        for(PerTypeEnum versionTypeEunm:PerTypeEnum.values()){
            if(key.equals(versionTypeEunm.getKey())){
                return versionTypeEunm.getValue();
            }
        }
        return  null;
    }
    
    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }

    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }

}
